package com.yunji.ylexpiration_backstage.service.impl;

import com.yunji.ylexpiration_backstage.entity.FurnOrders;
import com.yunji.ylexpiration_backstage.mapper.FurnOrdersMapper;
import com.yunji.ylexpiration_backstage.service.FurnOrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FurnOrdersServiceImpl implements FurnOrdersService {
    @Autowired
    private FurnOrdersMapper furnOrdersMapper;

    @Override
    public List<FurnOrders> selectBystaticBylimit10() {
        List<FurnOrders> furnOrders = furnOrdersMapper.selectBystaticBylimit10();
        if(furnOrders==null||furnOrders.size()==0){
            return null;
        }
        return furnOrders;
    }
}
